<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); function xinrui_mobilereg_tpl_reg_bar() {
global $_G;?><?php
$__FORMHASH = FORMHASH;$return = <<<EOF

<style type="text/css">
#main_message{min-height:700px;}
.layer_reg{padding:0;}
    .regTab0 {width:600px; margin:30px 0 30px 200px;}
    .tabTit0 {height:50px;line-height:50px;border-bottom:2px solid #e8e8e8;}
.tabTit0 li{width:50%;float:left;text-align:center;font-size:16px;}
.tabTit0 li a{display:block;height:50px;line-height:50px;background:url(source/plugin/xinrui_mobilereg/static/image/pcIcon.png) no-repeat;}
.tabTit0 .tabEmail{background-position:82px 14px;}
.tabTit0 li.a .tabEmail{background-position:82px -75px;}
.tabTit0 .tabMobile{background-position:76px -31px;}
.tabTit0 li.a .tabMobile{background-position:76px -119px;}
.tabTit0 li.a a{color:#3f9f5f;border-bottom:2px solid #3f9f5f;}
.xinBtn{height:38px;line-height:38px;border:none;color:#fff;background:#3f9f5f;font-size:12px;border-radius:2px;padding:0 10px;}
</style>
<form method="post" autocomplete="off" name="mregfrom" id="mregfrom" class="cl" action="plugin.php?id=xinrui_mobilereg&amp;mod=setting&amp;op=register&amp;confirmsubmit=yes&amp;handlekey=reg&amp;inajax=1" onsubmit="ajaxpost('mregfrom', 'fastpost', 'fastpost', 'onerror'); return false;">
<input type="hidden" name="formhash" value="{$__FORMHASH}" />
<input type="hidden" name="referer" value="
EOF;
 echo dhtmlspecialchars($dreferer); 
$return .= <<<EOF
" />
<input name="allsubmit" value="yes" type="hidden">
<div class="mtw">
<div id="reginfo_a">
<div class="rfm">
<table>
<tbody>
<tr>
<th>
<span class="rq">*</span><label for="pc_reg_mobile">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile']}:</label>
</th>
<td>
<input id="phone" name="phone" class="px" tabindex="1" value="" autocomplete="off" size="25" maxlength="11" required="" type="text">
</td>
<td class="tipcol">
<i id="tip_pc_reg_mobile" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile1']}</i><kbd id="chk_pc_reg_mobile" class="p_chk"></kbd>
</td>
<td><button id="pc_reg_get_verify" class="xinBtn" type="button" data="1" style="cursor: pointer;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile2']}</button></td>
</tr>
</tbody>
</table>
</div>
<div class="rfm">
<table>
<tbody>
<tr>
<th>
<span class="rq">*</span><label for="pc_reg_verify">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile3']}:</label>
</th>
<td>
<input id="verfiy" name="verfiy" class="px" tabindex="1" value="" autocomplete="off" size="25" required="" type="text">
</td>
<td class="tipcol">
<i id="tip_pc_reg_verify" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile4']}</i><kbd id="chk_pc_reg_verify" class="p_chk"></kbd>
</td>
</tr>
</tbody>
</table>
</div>
<div class="rfm">
<table>
<tbody>
<tr>
<th>
<span class="rq">*</span><label for="pc_reg_passwd">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile5']}:</label>
</th>
<td>
<input id="passwd" name="passwd" class="px" tabindex="1" value="" autocomplete="off" size="25" required="" type="password">
</td>
<td class="tipcol">
<i id="tip_pc_reg_passwd" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile6']}</i><kbd id="chk_pc_reg_passwd" class="p_chk"></kbd>
</td>
</tr>
</tbody>
</table>
</div>
<div class="rfm">
<table>
<tbody>
<tr>
<th>
<span class="rq">*</span><label for="pc_reg_passwd2">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile7']}:</label>
</th>
<td>
<input id="passwd_2" name="passwd_2" class="px" tabindex="1" value="" autocomplete="off" size="25" required="" type="password">
</td>
<td class="tipcol">
<i id="tip_pc_reg_passwd2" class="p_tip" style="display: none;">{$_G['XRLANG_MOBLIEREG']['reg_pc_mobile8']}</i><kbd id="chk_pc_reg_passwd2" class="p_chk"></kbd>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="rfm mbw bw0">
<table width="100%">
<tbody>
<tr>
<th>&nbsp;

</th>
<td>
<span id="reginfo_a_btn">
<em>&nbsp;</em><button class="pn pnc" id="confirmsubmit" type="submit" name="" value="true" tabindex="1"><strong>提交</strong></button>
</span>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</div>
<div class="rfm bw0 mbw" style="display: none;" id="sms_hooks_register">
</div>
</form>

<script type="text/javascript">

function succeedhandle_reg(url,msg) {
setTimeout(function () {
location.href = url;
}, '1000');
}

jq(function(){
var ashow1 = ashow2 = ''  ;


EOF;
 if(isset($_G['cache']['plugin']['xinrui_mobilereg']['reg_mobile_priority']) && $_G['cache']['plugin']['xinrui_mobilereg']['reg_mobile_priority'] == 1) { 
$return .= <<<EOF

 ashow1 = 'class="a"';
 jq('#mregfrom').show();
 jq('#registerform').hide();

EOF;
 } else { 
$return .= <<<EOF

 ashow2 = 'class="a"';
 jq('#mregfrom').hide();
 jq('#registerform').show();

EOF;
 } 
$return .= <<<EOF


var mreg = {
init:function(){
jq('#main_hnav').prop('outerHTML',this.main_hnav);

EOF;
 if(isset($_G['cache']['plugin']['xinrui_mobilereg']['login_mobilereg']) && $_G['cache']['plugin']['xinrui_mobilereg']['login_mobilereg'] == 1) { 
$return .= <<<EOF

jq('#registerform').remove();
jq('#reg_connect_tab_1').remove();

EOF;
 } else { } 
$return .= <<<EOF

jq(document).on('click','#reg_connect_tab_1',this.reg_connect_tab_1);
jq(document).on('click','#reg_connect_tab_2',this.reg_connect_tab_2);
jq(document).on('click','#pc_reg_get_verify',this.pc_reg_get_verify);
},
main_hnav : '<div id="registerbox" class="regTab0"><div class="tabTit0 cl">'+
'<ul class="cl">'+
'<li id="reg_connect_tab_1" '+ashow2+'><a class="tabEmail" id="reglist" href="javascript:;" tabindex="900">'+_G.reg_pc_mobile9+'</a></li>'+
'<li id="reg_connect_tab_2" '+ashow1+'><a class="tabMobile" id="reglist2" href="javascript:;">'+_G.reg_pc_mobile10+'</a></li>'+
'</ul>'+
'</div></div>',
reg_connect_tab_1:function(){
jq('#registerform').show();
jq('#mregfrom').hide();	
jq(this).addClass('a');
jq('#reg_connect_tab_2').removeClass('a');
},
reg_connect_tab_2:function(){
jq('#mregfrom').show();
jq('#registerform').hide();	
jq(this).addClass('a');
jq('#reg_connect_tab_1').removeClass('a');
},
pc_reg_get_verify:function(){
var phone = jq('#phone').val();
var mobile_tel = /^1[3|4|5|7|8][0-9]\d{8}$/;
if(phone == ''){
alert(_G.reg_pc_mobile11);	
return ;
}
   				if(mobile_tel.test(phone)){
//showWindow('register','plugin.php?id=xinrui_mobilereg&mod=setting&op=sendcode&handlekey=yes&phone='+phone);	
showWindow('register','plugin.php?id=xinrui_mobilereg&mod=setting&op=sendcode&infloat=yes&handlekey=register&inajax=1&phone='+phone);	
}else{
alert(_G.reg_pc_mobile12);	
}
return ;	
}
}
mreg.init();
})
    
</script>

EOF;
?><?php return $return;?><?php }

function xinrui_mobilereg_tpl_login_bar() {
global $_G;?><?php $loginhash = 'L'.random(4);?><?php
$__FORMHASH = FORMHASH;$return = <<<EOF

<style type="text/css">
.regTab1 {width:400px; margin:10px auto;}
    .tabTit1 {height:36px;line-height:36px;border-bottom:2px solid #e8e8e8;}
.tabTit1 li{width:50%;float:left;text-align:center;font-size:14px;}
.tabTit1 li a{display:block;height:36px;line-height:36px;background:url(source/plugin/xinrui_mobilereg/static/image/pcIcon.png) no-repeat;}
.tabTit1 .tabEmail{background-position:25px 6px;}
.tabTit1 li.a .tabEmail{background-position:25px -83px;}
.tabTit1 .tabMobile{background-position:30px -38px;}
.tabTit1 li.a .tabMobile{background-position:30px -126px;}
.tabTit1 li.a a{color:#3f9f5f;border-bottom:2px solid #3f9f5f;}
#fwin_content_login input.px {width:200px;}
</style>

<script>

function succeedhandle_login(url,msg) {
setTimeout(function () {
location.href = url;
}, '1000');
}

var shtml = ['<form action="plugin.php?id=xinrui_mobilereg&amp;mod=setting&amp;op=login&amp;allsubmit=yes&amp;flag=yes&amp;confirmsubmit=yes&amp;handlekey=login" method="post" autocomplete="off" name="mobilelogin2" id="formlogin_{$loginhash}" class="cl" onsubmit="ajaxpost(\'formlogin_{$loginhash}\', \'returnmessage_{$loginhash}\', \'returnmessage_{$loginhash}\', \'onerror\'); return false;"><input type="hidden" name="formhash" id="formhash" value="{$__FORMHASH}"/><input type="hidden" name="referer" value="
EOF;
 echo dhtmlspecialchars($dreferer); 
$return .= <<<EOF
" />',
'	<div>',
'		<div id="reginfo_a">',
'			<div class="rfm">',
'				<table>',
'				<tr>',
'					<th>',
'						<span class="rq">*</span><label for="avBu4z">{$_G["XRLANG_MOBLIEREG"]["reg_pc_mobile"]}:</label>',
'					</th>',
'					<td>',
'						<input type="text" id="phone" name="phone" class="px" tabindex="1" value="" autocomplete="off" size="25" maxlength="11" required="">',
'					</td>',
'					<td class="tipcol">',
'						<a href="member.php?mod=register">{$_G["setting"]["reglinkname"]}</a>',
'					</td>',
'				</tr>',
'				</table>',
'			</div>',
'			<div class="rfm">',
'				<table>',
'				<tbody>',
'				<tr>',
'					<th>',
'						<span class="rq">*</span><label for="avBu4z">密码:</label>',
'					</th>',
'					<td>',
'						<input type="password" id="pwd" name="pwd" class="px" tabindex="1" value="" autocomplete="off" size="25" required="">',
'					</td>',
'					<td class="tipcol">',
'						<a href="javascript:;" onclick="showWindow(\'login\', \'member.php?mod=logging&action=login&viewlostpw=1\')">{$_G["XRLANG_MOBLIEREG"]["login_pc_mobile3"]}</a>',
'					</td>',
'				</tr>',
'				</tbody>',
'				</table>',
'			</div>',
'		</div>',
'	</div>',
'	<div class="rfm mbw bw0">',
'		<table width="100%">',
'		<tbody>',
'		<tr>',
'			<th>&nbsp;',
'				',
'			</th>',
'			<td>',
'				<span id="reginfo_a_btn"><em>&nbsp;</em><button class="pn pnc" type="submit" name="" value="true" tabindex="1"><strong>登录</strong></button></span>',
'			</td>',
'			<td>',
'			</td>',
'		</tr>',
'		</tbody>',
'		</table>',
'	</div>',
'	<div class="rfm bw0 mbw" id="hooks_ajaxlogin" style="display: none;">',
'	</div>',
'</form>'].join("");
jq(function(){
var ashow1 = ashow2 = '' ;
var formid = jq("form[id^='loginform_']:first").attr("id");	

EOF;
 if(isset($_G['cache']['plugin']['xinrui_mobilereg']['login_mobile_priority']) && $_G['cache']['plugin']['xinrui_mobilereg']['login_mobile_priority'] == 1) { 
$return .= <<<EOF

 ashow1 = 'class="a"';
 jq('#formlogin_{$loginhash}').show();
 jq("form[id^='"+formid+"']").hide();	

EOF;
 } else { 
$return .= <<<EOF

 ashow2 = 'class="a"';
 jq('#formlogin_{$loginhash}').hide();
 jq("form[id^='"+formid+"']").show();	

EOF;
 } 
$return .= <<<EOF


var mlogin = {
init:function(){
jq("form[id^='"+formid+"']").before(this.main_hnav);
jq("form[id^='"+formid+"']").after(shtml);
var ajaxhtml = jq("hr.l").next().html();
if(ajaxhtml){
jq('#hooks_ajaxlogin').html('<hr class="l"><table>' + ajaxhtml + '</table>').show();
}


EOF;
 if(isset($_G['cache']['plugin']['xinrui_mobilereg']['login_mobilelogin']) && $_G['cache']['plugin']['xinrui_mobilereg']['login_mobilelogin'] == 1) { 
$return .= <<<EOF

jq("form[id^='"+formid+"']").remove();
jq('#login_connect_tab_1').remove();					

EOF;
 } 
$return .= <<<EOF


jq('#login_connect_tab_1').on("click",this.login_connect_tab_1);
jq('#login_connect_tab_2').on("click",this.login_connect_tab_2);
},
main_hnav : '<div id="login2_box" class="regTab1"> <div class="tabTit1 cl">'+
'<ul class="cl" style="margin:0px;">'+
'<li id="login_connect_tab_1" '+ashow2+'><a class="tabEmail" id="login2list" href="javascript:;" tabindex="900">'+_G.login_pc_mobile1+'</a></li>'+
'<li id="login_connect_tab_2" '+ashow1+'><a class="tabMobile id="login2list2" href="javascript:;" tabindex="900">'+_G.login_pc_mobile2+'</a></li>'+
'</ul>'+
'</div></div>',
login_connect_tab_1:function(){
jq('#formlogin_{$loginhash}').hide();
jq("form[id^='"+formid+"']").show();	
jq(this).addClass('a');
jq('#login_connect_tab_2').removeClass('a');
},
login_connect_tab_2:function(){
jq('#formlogin_{$loginhash}').show();
jq("form[id^='"+formid+"']").hide();	
jq(this).addClass('a');
jq('#login_connect_tab_1').removeClass('a');
},
}
mlogin.init();

});
</script>

EOF;
?><?php return $return;?><?php }



function xinrui_mobilereg_tpl_logging_setting() {
global $_G;?><?php
$__FORMHASH = FORMHASH;$return = <<<EOF

<style type="text/css">
    .regTab2 {width:400px; margin:10px auto;}
    .tabTit2 {height:36px;line-height:36px;border-bottom:2px solid #e8e8e8;}
.tabTit2 li{width:50%;float:left;text-align:center;font-size:14px;}
.tabTit2 li a{display:block;height:36px;line-height:36px;background:url(source/plugin/xinrui_mobilereg/static/image/pcIcon.png) no-repeat;}
.tabTit2 .tabEmail{background-position:35px 6px;}
.tabTit2 li.a .tabEmail{background-position:35px -83px;}
.tabTit2 .tabMobile{background-position:30px -38px;padding-left:20px;}
.tabTit2 li.a .tabMobile{background-position:30px -126px;}
.tabTit2 li.a a{color:#3f9f5f;border-bottom:2px solid #3f9f5f;}
#fwin_content_login input.px {width:200px !important;}
.xinBtn{height:38px;line-height:38px;border:none;color:#fff;background:#3f9f5f;font-size:12px;border-radius:2px;}
</style>

<script type="text/javascript" reload="1">

function succeedhandle_logging(url,msg) {
if(msg == _G.login_pc_mobile12){
jq("form[name='mobilelostpw']").hide();
jq("form[name='mobilelostpw2']").show();	
return false ;
}
if(msg == _G.login_pc_mobile14){
setTimeout(function () {
location.href = url;
}, '1000');
}

}
jq(function (){

var formid = jq("form[id^='lostpwform_']").attr("id");


EOF;
 if(isset($_G['cache']['plugin']['xinrui_mobilereg']['login_mobile_priority']) && $_G['cache']['plugin']['xinrui_mobilereg']['login_mobile_priority'] == 1) { 
$return .= <<<EOF

 ashow1 = 'class="a"';
 jq('#mobilelostpw').show();
 jq("form[id^='"+formid+"']").hide();	

EOF;
 } else { 
$return .= <<<EOF

 ashow2 = 'class="a"';
 jq('#mobilelostpw').hide();
 jq("form[id^='"+formid+"']").show();	

EOF;
 } 
$return .= <<<EOF



var lhtml = ['<div id="lostpw2_box" class="regTab2">',
'	<div class="tabTit2 cl">',
'		<ul class="cl">',
'			<li id="logging_connect_tab_1" '+ashow2+'><a class="tabEmail" id="lostpw2list" href="javascript:;" tabindex="900">{$_G["XRLANG_MOBLIEREG"]["login_pc_mobile9"]}</a></li>',
'			<li id="logging_connect_tab_2" '+ashow1+'><a class="tabMobile" id="lostpw2list2" href="javascript:;" tabindex="900">{$_G["XRLANG_MOBLIEREG"]["login_pc_mobile10"]}</a></li>',
'		</ul>',
'	</div>',
'</div>'].join("");
var shtml = ['<form method="post" autocomplete="off" name="mobilelostpw" id="mobilelostpw" class="cl" style="none" action="plugin.php?id=xinrui_mobilereg&amp;mod=setting&amp;op=getmobile&amp;confirmsubmit=yes&amp;infloat=yes&amp;handlekey=logging&amp;inajax=1" onsubmit="ajaxpost(\'mobilelostpw\', \'return_{$loginhash}\', \'return_{$loginhash}\', \'onerror\'); return false;">',
'	<input type="hidden" name="formhash" id="formhash" value="{$__FORMHASH}"/>',
'	<div>',
'		<div id="reginfo_a">',
'			<div class="rfm">',
'				<table>',
'				<tbody>',
'				<tr>',
'					<th>',
'						<span class="rq">*</span><label for="avBu4z">{$_G["XRLANG_MOBLIEREG"]["reg_pc_mobile"]}:</label>',
'					</th>',
'					<td>',
'						<input type="text" id="phone" name="phone" class="px" tabindex="1" value="" autocomplete="off" size="25" maxlength="11" required="">',
'					</td>',
'					<td class="tipcol">',
'					</td><td><button id="pc_reg_get_verify" class="xinBtn" type="button" data="1" style="cursor: pointer;">{$_G["XRLANG_MOBLIEREG"]["reg_pc_mobile2"]}</button>',
'				</tr>',
'				</tbody>',
'				</table>',
'				<table>',
'				<tr>',
'					<th>',
'					</th>',
'					<td style="padding:0px 0px 16px 0px;">',
'					</td>',
'					<td>',
'					</td>',
'				</tr>',
'				</table>',
'			</div>',
'			<div class="rfm">',
'				<table>',
'				<tbody>',
'				<tr>',
'					<th>',
'						<span class="rq">*</span><label for="avBu4z">{$_G["XRLANG_MOBLIEREG"]["reg_pc_mobile3"]}:</label>',
'					</th>',
'					<td>',
'						<input type="text" id="verfiy" name="verfiy" class="px" tabindex="1" value="" autocomplete="off" size="25" required="">',
'					</td>',
'					<td class="tipcol">',
'					</td>',
'				</tr>',
'				</tbody>',
'				</table>',
'			</div>',
'		</div>',
'	</div>',
'	<div class="rfm mbw bw0">',
'		<table width="100%">',
'		<tbody>',
'		<tr>',
'			<th>',
'				&nbsp;',
'			</th>',
'			<td>',
'				<span id="reginfo_a_btn"><em>&nbsp;</em><button class="pn pnc" type="submit" name="" value="true" tabindex="1"><strong>{$_G["XRLANG_MOBLIEREG"]["login_pc_mobile8"]}</strong></button></span>',
'			</td>',
'			<td>',
'			</td>',
'		</tr>',
'		</tbody>',
'		</table>',
'	</div>',
'</form>',
'<form method="post" autocomplete="off" name="mobilelostpw2" id="mobilelostpw2" class="cl" style="display:none" action="plugin.php?id=xinrui_mobilereg&amp;mod=setting&amp;op=uptpwd&amp;infloat=yes&amp;confirmsubmit=yes&amp;inajax=1&amp;handlekey=logging" onsubmit="ajaxpost(\'mobilelostpw2\', \'return_{$loginhash}\', \'return_{$loginhash}\', \'onerror\'); return false;">',
'	<input type="hidden" name="formhash" id="formhash" value="{$__FORMHASH}"/>',
'	<div>',
'		<div id="reginfo_a">',
'			<div class="rfm">',
'				<table>',
'				<tbody>',
'				<tr>',
'					<th>',
'						<span class="rq">*</span><label for="avBu4z">{$_G["XRLANG_MOBLIEREG"]["login_pc_mobile6"]}:</label>',
'					</th>',
'					<td>',
'						<input type="password" id="password" name="password" class="px" tabindex="1" value="" autocomplete="off" size="25" required="">',
'					</td>',
'					<td class="tipcol">',
'					</td>',
'				</tr>',
'				</tbody>',
'				</table>',
'			</div>',
'			<div class="rfm">',
'				<table>',
'				<tbody>',
'				<tr>',
'					<th>',
'						<span class="rq">*</span><label for="avBu4z">{$_G["XRLANG_MOBLIEREG"]["login_pc_mobile7"]}:</label>',
'					</th>',
'					<td>',
'						<input type="password" id="password2" name="password2" class="px" tabindex="1" value="" autocomplete="off" size="25" required="">',
'					</td>',
'					<td class="tipcol">',
'					</td>',
'				</tr>',
'				</tbody>',
'				</table>',
'			</div>',
'		</div>',
'	</div>',
'	<div class="rfm mbw bw0">',
'		<table width="100%">',
'		<tbody>',
'		<tr>',
'			<th>',
'				&nbsp;',
'			</th>',
'			<td>',
'				<span id="reginfo_a_btn1"><em>&nbsp;</em><button class="pn pnc" type="submit" name="" value="true" tabindex="1"><strong>提交</strong></button></span>',
'			</td>',
'			<td>',
'			</td>',
'		</tr>',
'		</tbody>',
'		</table>',
'	</div>',
'</form>'].join("");
jq("form[id^='"+formid+"']").before(lhtml);
jq("form[id^='"+formid+"']").after(shtml);
jq("form[id^='"+formid+"']").css('display','none');



EOF;
 if(isset($_G['cache']['plugin']['xinrui_mobilereg']['login_mobileupt']) && $_G['cache']['plugin']['xinrui_mobilereg']['login_mobileupt'] == 1) { 
$return .= <<<EOF

jq("form[id^='"+formid+"']").remove();
jq('#logging_connect_tab_1').remove();					

EOF;
 } 
$return .= <<<EOF




jq('#logging_connect_tab_1').on("click",function(){
jq('#mobilelostpw').hide();
jq("form[id^='"+formid+"']").show();	
jq(this).addClass('a');
jq('#logging_connect_tab_2').removeClass('a');
});
jq('#logging_connect_tab_2').on("click",function(){
jq('#mobilelostpw').show();
jq("form[id^='"+formid+"']").hide();	
jq(this).addClass('a');
jq('#logging_connect_tab_1').removeClass('a');
});

jq('#pc_reg_get_verify').on("click",function(){
var phone = jq('#phone').val();
var mobile_tel = /^1[3|4|5|7|8][0-9]\d{8}$/;
if(phone == ''){
alert(_G.reg_pc_mobile11);	
return ;
}
if(mobile_tel.test(phone)){
showWindow('upt','plugin.php?id=xinrui_mobilereg&mod=setting&op=sendcode&infloat=yes&handlekey=upt&inajax=1&phone='+phone);	
}else{
alert(_G.reg_pc_mobile12);	
}
return ;	
});

});
</script>


EOF;
?><?php return $return;?><?php }



function xinrui_mobilereg_tpl_setting_menu() {
global $_G;?><?php
$return = <<<EOF

<style type="text/css">
    #xinrui_mobilereg_menu li{float:left;margin:0 5px;}
    #xinrui_mobilereg_menu li a{ line-height: 36px;height:36px;}
</style>
<span class="pipe">|</span>

<ul id="xinrui_mobilereg_menu" class="z">

EOF;
 if(empty($_G['xinrui_userinfo']['uid'])) { 
$return .= <<<EOF

    <li><a href="javascript:;" onclick="showWindow('bind', 'plugin.php?id=xinrui_mobilereg&mod=setting&op=bindm')">{$_G['XRLANG_MOBLIEREG']['login_pc_mobile21']}</a></li>
    
EOF;
 } else { if(!empty($_G['xinrui_userinfo']['uid']) && $_G['xinrui_userinfo']['uid'] == $_G['xinrui_userinfo']['bind']) { 
$return .= <<<EOF

<li><a href="javascript:;" onclick="showWindow('bind', 'plugin.php?id=xinrui_mobilereg&mod=setting&op=bind')">{$_G['XRLANG_MOBLIEREG']['login_pc_mobile20']}</a></li>
        	
EOF;
 if(empty($_G['xinrui_userinfo']['isuser'])) { 
$return .= <<<EOF

            <li><a href="javascript:;" onclick="showWindow('uptuser', 'plugin.php?id=xinrui_mobilereg&mod=setting&op=uptuser')">{$_G['XRLANG_MOBLIEREG']['login_pc_mobile26']}</a></li>
            
EOF;
 } } else { 
$return .= <<<EOF

<li><a href="javascript:;" onclick="showWindow('unbind', 'plugin.php?id=xinrui_mobilereg&mod=setting&op=unbind')">{$_G['XRLANG_MOBLIEREG']['login_pc_mobile22']}</a></li>

EOF;
 } 
$return .= <<<EOF

    
EOF;
 } 
$return .= <<<EOF

</ul>


EOF;
?><?php return $return;?><?php }?>